package com.example.JavaWebApi.mapper.systemMapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.JavaWebApi.model.entity.systemEntity.Menuinfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuinfoMapper extends BaseMapper<Menuinfo> {
    List<Integer> getMenuByRoleId(Integer roleId);
    List<Menuinfo> getMenuByUserId(@Param(Constants.WRAPPER)QueryWrapper<Menuinfo> queryWrapper);
}